filetype plugin off
call pathogen#infect()
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
filetype plugin indent on

filetype off

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
Bundle 'altercation/vim-colors-solarized'
Bundle 'majutsushi/tagbar'
Bundle 'scrooloose/nerdtree'
"Bundle 'groenewege/vim-less'
Bundle 'jistr/vim-nerdtree-tabs'
Bundle 'tpope/vim-surround'
Bundle 'vim-scripts/fish.vim'
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'lepture/vim-css'
Bundle 'lepture/vim-jinja'
filetype plugin indent on

"
" Brief help
" :BundleList          - list configured bundles
" :BundleInstall(!)    - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..


syntax on
set rnu
set ruler 
let file_name = buffer_name("%")
if file_name =~ '\.py$'
  set shiftwidth=4
  set tabstop=4
else
  set shiftwidth=2
  set tabstop=2
endif


set textwidth=80
set expandtab
set smartindent
set backspace=indent,eol,start

"shift tab pages
map <C-p> :tabp<CR>
map <C-n> :tabn<CR>

"syntax enable                                                                                                                                  
"set background=light                                                                                                                           
"set background=dark
"colorscheme solarized  


"map insert mode key

"inoremap <C-e> <END>
"inoremap <C-a> <HOME>
"inoremap <C-f> <Right>
"inoremap <C-b> <Left>
"inoremap <M-f> <S-Right>
"inoremap <M-b> <S-Left>
"inoremap <M-n> <Down>
"inoremap <M-p> <Up>
"
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-h> <Left>
inoremap <C-l> <Right>

"NERDtree
""nmap <F3> :NERDTree ~/Developer \| :silent NERDTreeMirror<CR>
"nmap <F2> :NERDTreeToggle \| :silent NERDTreeMirror<CR>
nmap <F4> :NERDTreeTabsToggle<CR>
""let NERDTreeWinPos = "right"

nmap <F8> :TagbarToggle<CR>
let g:tagbar_ctags_bin = '/usr/local/Cellar/ctags/5.8/bin/ctags'
let g:tagbar_width = 30

